import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index';
import menu1 from '@/components/menu/menu1';
import menu2 from '@/components/menu2/menu2';
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/index',
        name: 'index',
        component: index,
        children: [{
                path: 'menu1',
                name: 'menu1',
                component: menu1
            },
            {
                path: 'menu2',
                name: 'menu3',
                component: menu2
            },
        ]
    }]
})